//
//  NSobject+YDTheme.h
//
//  Created by kf on 2017/8/11.
//  Copyright © 2017年 IngDan. All rights reserved.
//
#import <UIKit/UIKit.h>

typedef void (^OnStyleChanged)(UIView* target);

#define UIBUTTONSTYLE  UIButton *temp = (UIButton *) target; if(!temp) return;
#define UITEXTFIELDSTYLE  UITextField *temp = (UITextField *) target; if(!temp) return;
#define UILABELSTYLE  UILabel *temp = (UILabel *) target; if(!temp) return;

@interface UIView (YDTheme)

/**
 *  设置主题切换时的回调方法
 */
- (void) setStyle:(OnStyleChanged)onStyleChanged;
@end
